import Api from "/@/api/Api";

import ApiConfig from "/@/api/ApiConfig";
export default class ParamsApi extends Api {


    static insert(params: Object) {
        return this.post({
            url: ApiConfig.SYSTEM.PARAMS,
            data: params,
        });
    }

    static update(params: Object) {
        return this.put({
            url: ApiConfig.SYSTEM.PARAMS,
            data: params
        });
    }

    static view(id: string) {
        return this.get({
            url: ApiConfig.SYSTEM.PARAMS,
            params: {id: id}
        });
    }

}